package com.zz.demo.entity.po;

import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户的借书表
 * </p>
 *
 * @author huazai
 * @since 2022-07-04
 */
@ApiModel(value = "Borrow对象", description = "用户的借书表")
public class Borrow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("借书申请的编号。")
    private String borrowID;

    @ApiModelProperty("借书者的用户邮箱。")
    private String borrowerEmail;

    @ApiModelProperty("借的书的ID。")
    private String bookID;

    @ApiModelProperty("借书的日期。")
    private LocalDate beginDate;

    @ApiModelProperty("申请的借书时长。")
    private Integer duration;

    @ApiModelProperty("还书的结果。")
    private String borrowStatus;

    @ApiModelProperty("借书花费。")
    private Double cost;

    public String getBorrowID() {
        return borrowID;
    }

    public void setBorrowID(String borrowID) {
        this.borrowID = borrowID;
    }
    public String getBorrowerEmail() {
        return borrowerEmail;
    }

    public void setBorrowerEmail(String borrowerEmail) {
        this.borrowerEmail = borrowerEmail;
    }
    public String getBookID() {
        return bookID;
    }

    public void setBookID(String bookID) {
        this.bookID = bookID;
    }
    public LocalDate getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(LocalDate beginDate) {
        this.beginDate = beginDate;
    }
    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }
    public String getBorrowStatus() {
        return borrowStatus;
    }

    public void setBorrowStatus(String borrowStatus) {
        this.borrowStatus = borrowStatus;
    }
    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "Borrow{" +
            "borrowID=" + borrowID +
            ", borrowerEmail=" + borrowerEmail +
            ", bookID=" + bookID +
            ", beginDate=" + beginDate +
            ", duration=" + duration +
            ", borrowStatus=" + borrowStatus +
            ", cost=" + cost +
        "}";
    }
}
